package com.example.ifopt;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import org.apache.commons.collections.keyvalue.MultiKey;
import org.apache.poi.ss.formula.functions.T;

/**
 *
 *
 * @author qingyan 2022-03-11
 */
public class MulKey{

    private Object[] objs;

    private MulKey(Object[] objs) {
        this.objs = objs;
    }

    public static MulKey of(Object obj, Object... ob) {
        if (ob == null) {
            return new MulKey(new Object[]{obj});
        }
        int size = 1 + ob.length;
        Object[] objs = new Object[size];
        objs[0] = obj;
        for (int i = 1; i < size - 1; i++) {
            objs[i] = ob[i - 1];
        }
        return new MulKey(objs);
    }

    
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
